Skip to content

fix: n+1 for REST API projects - #205

Merged
s-sajid-ali merged 3 commits into
mainfrom
fix/n-plus-1-rest-api-projects
Aug 26, 2026
Merged

s-sajid-ali merged 3 commits into
mainfrom
fix/n-plus-1-rest-api-projects

Conversation

@s-sajid-ali

@s-sajid-ali s-sajid-ali commented Aug 26, 2026 •

Copy link
Copy Markdown
Member

Still leaves out an N+1 for Resource per Allocation for now as that is caused by Allocation.get_resources_as_string

this brings total query walltime down from 39s to 6s with the current state of the projects portal.

@s-sajid-ali
s-sajid-ali force-pushed the fix/n-plus-1-rest-api-projects branch from 054e055 to e20b910 Compare August 26, 2026 20:03
@s-sajid-ali
s-sajid-ali force-pushed the fix/n-plus-1-rest-api-projects branch from 158c8e1 to aa6bde1 Compare August 26, 2026 20:16
@s-sajid-ali
s-sajid-ali merged commit 6728fd5 into main Aug 26, 2026
5 of 8 checks passed
@s-sajid-ali
s-sajid-ali deleted the fix/n-plus-1-rest-api-projects branch August 26, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant